/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: Universidad de La Frontera
 * License Type: Academic
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class PagoCriteria extends AbstractORMCriteria {
	public final IntegerExpression pago_ID;
	public final StringExpression fecha;
	public final LongExpression monto_pagar;
	
	public PagoCriteria(Criteria criteria) {
		super(criteria);
		pago_ID = new IntegerExpression("pago_ID", this);
		fecha = new StringExpression("fecha", this);
		monto_pagar = new LongExpression("monto_pagar", this);
	}
	
	public PagoCriteria(PersistentSession session) {
		this(session.createCriteria(Pago.class));
	}
	
	public PagoCriteria() throws PersistentException {
		this(orm.TrabajoAplicado1PersistentManager.instance().getSession());
	}
	
	public CuentaCriteria createCuentacuentaCriteria() {
		return new CuentaCriteria(createCriteria("cuentacuenta"));
	}
	
	public Pago uniquePago() {
		return (Pago) super.uniqueResult();
	}
	
	public Pago[] listPago() {
		java.util.List list = super.list();
		return (Pago[]) list.toArray(new Pago[list.size()]);
	}
}

